package com.fish.yssb.ui.page.activity.base;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.text.TextUtils;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

import com.fish.yssb.ui.page.util.ToastUtil;
import com.jaeger.library.StatusBarUtil;


/**
 * Activity基类
 */
public abstract class BaseActivity extends FragmentActivity {
    public static final String KEY_PROJECTID = "project_id";

    protected View titlebar_back, titlebar_menu;
    protected TextView titlebar_title, titlebar_menu_text;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
    }


    public void showToast(String msg) {
        ToastUtil.getInstance(this).showShortToast(msg);
    }

    public void showToast(String msg, ToastUtil.TOAST_TYPE toast_type) {
        ToastUtil.getInstance(this).showToast(msg, toast_type);
    }

}
